package cn.edu.csust.tysp.backend.domain;

import java.util.ArrayList;
import java.util.List;

public class AudioExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public AudioExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andAudioNameIsNull() {
            addCriterion("audio_name is null");
            return (Criteria) this;
        }

        public Criteria andAudioNameIsNotNull() {
            addCriterion("audio_name is not null");
            return (Criteria) this;
        }

        public Criteria andAudioNameEqualTo(String value) {
            addCriterion("audio_name =", value, "audioName");
            return (Criteria) this;
        }

        public Criteria andAudioNameNotEqualTo(String value) {
            addCriterion("audio_name <>", value, "audioName");
            return (Criteria) this;
        }

        public Criteria andAudioNameGreaterThan(String value) {
            addCriterion("audio_name >", value, "audioName");
            return (Criteria) this;
        }

        public Criteria andAudioNameGreaterThanOrEqualTo(String value) {
            addCriterion("audio_name >=", value, "audioName");
            return (Criteria) this;
        }

        public Criteria andAudioNameLessThan(String value) {
            addCriterion("audio_name <", value, "audioName");
            return (Criteria) this;
        }

        public Criteria andAudioNameLessThanOrEqualTo(String value) {
            addCriterion("audio_name <=", value, "audioName");
            return (Criteria) this;
        }

        public Criteria andAudioNameLike(String value) {
            addCriterion("audio_name like", value, "audioName");
            return (Criteria) this;
        }

        public Criteria andAudioNameNotLike(String value) {
            addCriterion("audio_name not like", value, "audioName");
            return (Criteria) this;
        }

        public Criteria andAudioNameIn(List<String> values) {
            addCriterion("audio_name in", values, "audioName");
            return (Criteria) this;
        }

        public Criteria andAudioNameNotIn(List<String> values) {
            addCriterion("audio_name not in", values, "audioName");
            return (Criteria) this;
        }

        public Criteria andAudioNameBetween(String value1, String value2) {
            addCriterion("audio_name between", value1, value2, "audioName");
            return (Criteria) this;
        }

        public Criteria andAudioNameNotBetween(String value1, String value2) {
            addCriterion("audio_name not between", value1, value2, "audioName");
            return (Criteria) this;
        }

        public Criteria andAudioTypeIsNull() {
            addCriterion("audio_type is null");
            return (Criteria) this;
        }

        public Criteria andAudioTypeIsNotNull() {
            addCriterion("audio_type is not null");
            return (Criteria) this;
        }

        public Criteria andAudioTypeEqualTo(String value) {
            addCriterion("audio_type =", value, "audioType");
            return (Criteria) this;
        }

        public Criteria andAudioTypeNotEqualTo(String value) {
            addCriterion("audio_type <>", value, "audioType");
            return (Criteria) this;
        }

        public Criteria andAudioTypeGreaterThan(String value) {
            addCriterion("audio_type >", value, "audioType");
            return (Criteria) this;
        }

        public Criteria andAudioTypeGreaterThanOrEqualTo(String value) {
            addCriterion("audio_type >=", value, "audioType");
            return (Criteria) this;
        }

        public Criteria andAudioTypeLessThan(String value) {
            addCriterion("audio_type <", value, "audioType");
            return (Criteria) this;
        }

        public Criteria andAudioTypeLessThanOrEqualTo(String value) {
            addCriterion("audio_type <=", value, "audioType");
            return (Criteria) this;
        }

        public Criteria andAudioTypeLike(String value) {
            addCriterion("audio_type like", value, "audioType");
            return (Criteria) this;
        }

        public Criteria andAudioTypeNotLike(String value) {
            addCriterion("audio_type not like", value, "audioType");
            return (Criteria) this;
        }

        public Criteria andAudioTypeIn(List<String> values) {
            addCriterion("audio_type in", values, "audioType");
            return (Criteria) this;
        }

        public Criteria andAudioTypeNotIn(List<String> values) {
            addCriterion("audio_type not in", values, "audioType");
            return (Criteria) this;
        }

        public Criteria andAudioTypeBetween(String value1, String value2) {
            addCriterion("audio_type between", value1, value2, "audioType");
            return (Criteria) this;
        }

        public Criteria andAudioTypeNotBetween(String value1, String value2) {
            addCriterion("audio_type not between", value1, value2, "audioType");
            return (Criteria) this;
        }

        public Criteria andSheetIdIsNull() {
            addCriterion("sheet_id is null");
            return (Criteria) this;
        }

        public Criteria andSheetIdIsNotNull() {
            addCriterion("sheet_id is not null");
            return (Criteria) this;
        }

        public Criteria andSheetIdEqualTo(Integer value) {
            addCriterion("sheet_id =", value, "sheetId");
            return (Criteria) this;
        }

        public Criteria andSheetIdNotEqualTo(Integer value) {
            addCriterion("sheet_id <>", value, "sheetId");
            return (Criteria) this;
        }

        public Criteria andSheetIdGreaterThan(Integer value) {
            addCriterion("sheet_id >", value, "sheetId");
            return (Criteria) this;
        }

        public Criteria andSheetIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("sheet_id >=", value, "sheetId");
            return (Criteria) this;
        }

        public Criteria andSheetIdLessThan(Integer value) {
            addCriterion("sheet_id <", value, "sheetId");
            return (Criteria) this;
        }

        public Criteria andSheetIdLessThanOrEqualTo(Integer value) {
            addCriterion("sheet_id <=", value, "sheetId");
            return (Criteria) this;
        }

        public Criteria andSheetIdIn(List<Integer> values) {
            addCriterion("sheet_id in", values, "sheetId");
            return (Criteria) this;
        }

        public Criteria andSheetIdNotIn(List<Integer> values) {
            addCriterion("sheet_id not in", values, "sheetId");
            return (Criteria) this;
        }

        public Criteria andSheetIdBetween(Integer value1, Integer value2) {
            addCriterion("sheet_id between", value1, value2, "sheetId");
            return (Criteria) this;
        }

        public Criteria andSheetIdNotBetween(Integer value1, Integer value2) {
            addCriterion("sheet_id not between", value1, value2, "sheetId");
            return (Criteria) this;
        }

        public Criteria andAudioPathIsNull() {
            addCriterion("audio_path is null");
            return (Criteria) this;
        }

        public Criteria andAudioPathIsNotNull() {
            addCriterion("audio_path is not null");
            return (Criteria) this;
        }

        public Criteria andAudioPathEqualTo(String value) {
            addCriterion("audio_path =", value, "audioPath");
            return (Criteria) this;
        }

        public Criteria andAudioPathNotEqualTo(String value) {
            addCriterion("audio_path <>", value, "audioPath");
            return (Criteria) this;
        }

        public Criteria andAudioPathGreaterThan(String value) {
            addCriterion("audio_path >", value, "audioPath");
            return (Criteria) this;
        }

        public Criteria andAudioPathGreaterThanOrEqualTo(String value) {
            addCriterion("audio_path >=", value, "audioPath");
            return (Criteria) this;
        }

        public Criteria andAudioPathLessThan(String value) {
            addCriterion("audio_path <", value, "audioPath");
            return (Criteria) this;
        }

        public Criteria andAudioPathLessThanOrEqualTo(String value) {
            addCriterion("audio_path <=", value, "audioPath");
            return (Criteria) this;
        }

        public Criteria andAudioPathLike(String value) {
            addCriterion("audio_path like", value, "audioPath");
            return (Criteria) this;
        }

        public Criteria andAudioPathNotLike(String value) {
            addCriterion("audio_path not like", value, "audioPath");
            return (Criteria) this;
        }

        public Criteria andAudioPathIn(List<String> values) {
            addCriterion("audio_path in", values, "audioPath");
            return (Criteria) this;
        }

        public Criteria andAudioPathNotIn(List<String> values) {
            addCriterion("audio_path not in", values, "audioPath");
            return (Criteria) this;
        }

        public Criteria andAudioPathBetween(String value1, String value2) {
            addCriterion("audio_path between", value1, value2, "audioPath");
            return (Criteria) this;
        }

        public Criteria andAudioPathNotBetween(String value1, String value2) {
            addCriterion("audio_path not between", value1, value2, "audioPath");
            return (Criteria) this;
        }

        public Criteria andAudioUrlIsNull() {
            addCriterion("audio_url is null");
            return (Criteria) this;
        }

        public Criteria andAudioUrlIsNotNull() {
            addCriterion("audio_url is not null");
            return (Criteria) this;
        }

        public Criteria andAudioUrlEqualTo(String value) {
            addCriterion("audio_url =", value, "audioUrl");
            return (Criteria) this;
        }

        public Criteria andAudioUrlNotEqualTo(String value) {
            addCriterion("audio_url <>", value, "audioUrl");
            return (Criteria) this;
        }

        public Criteria andAudioUrlGreaterThan(String value) {
            addCriterion("audio_url >", value, "audioUrl");
            return (Criteria) this;
        }

        public Criteria andAudioUrlGreaterThanOrEqualTo(String value) {
            addCriterion("audio_url >=", value, "audioUrl");
            return (Criteria) this;
        }

        public Criteria andAudioUrlLessThan(String value) {
            addCriterion("audio_url <", value, "audioUrl");
            return (Criteria) this;
        }

        public Criteria andAudioUrlLessThanOrEqualTo(String value) {
            addCriterion("audio_url <=", value, "audioUrl");
            return (Criteria) this;
        }

        public Criteria andAudioUrlLike(String value) {
            addCriterion("audio_url like", value, "audioUrl");
            return (Criteria) this;
        }

        public Criteria andAudioUrlNotLike(String value) {
            addCriterion("audio_url not like", value, "audioUrl");
            return (Criteria) this;
        }

        public Criteria andAudioUrlIn(List<String> values) {
            addCriterion("audio_url in", values, "audioUrl");
            return (Criteria) this;
        }

        public Criteria andAudioUrlNotIn(List<String> values) {
            addCriterion("audio_url not in", values, "audioUrl");
            return (Criteria) this;
        }

        public Criteria andAudioUrlBetween(String value1, String value2) {
            addCriterion("audio_url between", value1, value2, "audioUrl");
            return (Criteria) this;
        }

        public Criteria andAudioUrlNotBetween(String value1, String value2) {
            addCriterion("audio_url not between", value1, value2, "audioUrl");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}